package com.heima.dto.pagedto;

import lombok.Data;

import java.time.LocalDateTime;

@Data
public class PageDto {
    //当前页数
    private Integer pageNum = 1;
    //每页的显示数
    private Integer pageSize = 10;
    public void check(){
        if(pageSize >= 100 ){
            pageSize = 100;
        }
        if(pageSize <= 0){
            pageSize = 10;
        }
        if(pageNum <=0){
            pageSize = 1;
        }
    }
}
